﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PIM_ATE.Electrical
{
    public partial class FrmDataSpecial : Form
    {
        public FrmDataSpecial()
        {
            InitializeComponent();
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            groupBox1.Enabled = checkEnable.Checked;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (nudMax.Value < nudMin.Value)
            {
                MessageBox.Show("错误：最小值 > 最大值");
                return;
            }
            //MessageBox.Show("注意： 当配置更换后，特采功能将重新关闭!");
            this.DialogResult = DialogResult.OK;
        }

        private void radioPIMTrue_CheckedChanged(object sender, EventArgs e)
        {
            nudMax.Enabled = radioPIMTrue.Checked;
            nudMin.Enabled = radioPIMTrue.Checked;
        }
    }
}
